home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
dskut
/
fix402s.zip
/
TEST.ZIP
/
FIXTEST.DOC
next >
Wrap
Text File
|
1994-04-01
|
3KB
|
66 lines
fixtest.doc 4-94
FIX 4.XX PROOF TEST Page 1 of 1
PURPOSE
-------
The central algorithm in FIX uses a buffer to find and
process strings in a continuous input stream of unlimited
length. The technically inclined user will recognize the
potential for insidious undetected omission errors under
these circumstances. The input stream must be processed
one record or block at a time. But the target string may
be located anywhere in the input stream, without respect
to record boundaries. What happens when the target string
spans two records? If you are processing a delimited
string, what happens when the string falls at the begin-
ning or end of the record so that a possibly delimiting
character falls in an adjacent record? The test data file
provided here enables the interested user to verify FIX
performance under these most challenging data conditions.
TEST DESIGN
-----------
The test data file has been designed to assure that every
possible positional relationship between findstring and
the inter-record boundary is tested. Test data consists
of a continuously repeated test pattern that is 5 charac-
ters in length. The FIX input record size is (by program
configuration): 18,176 bytes - Licensed, 18,688 bytes -
Registered, 18,432 bytes - Shareware. The test pattern
size together with FIX record size guarantee that a test
pattern will shift by one character relative to the inter-
record boundary with each successive input record read in
the Licensed configuration, and with every other record in
the Registered and Shareware configurations. After 6 one
character shifts (12 buffer cycles at most), FIX will have
processed every possible positional relationship between
the findstring and the inter-record boundary. And the
size of the test file assures at least 26 buffer cycles.
Test Data File: TESTDATA.TXT 500,001 bytes (1 eof)
Test Pattern: "abcd " (not including quote marks)
Pattern Repetitions: 100,000
TEST EXAMPLE
------------
>fix 'abcd ' 'abcd efgh i' testdata.txt a:testdat2
TESTDATA.TXT TESTDAT2 Occurrences replaced: 100,000
>fix 'efgh i' '' a:testdat2 testdat3
TESTDAT2 TESTDAT3 Occurrences replaced: 100,000
>comp testdata.txt testdat3 NovaLogic(TM)
Comparing TESTDATA.TXT and TESTDAT3 Beaverton, OR
Files compare OK (503)524-9184
::